package com.googlecode.hyakutaded;

import org.mortbay.jetty.Connector;
import org.mortbay.jetty.Server;
import org.mortbay.jetty.nio.SelectChannelConnector;
import org.mortbay.jetty.webapp.WebAppContext;

public class Main {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {
		Server server = new Server();
		Connector connector = new SelectChannelConnector();
		connector.setPort(10180);
		server.setConnectors(new Connector[] { connector });
		WebAppContext context = new WebAppContext();
		context.setContextPath("/");
		context.setResourceBase("web");
		server.setHandler(context);
		server.start();
		server.join();
	}
}
